(function(){
    var Game = YYC.Class({
        Init: function () {},
        Private:{
            _layerManager: [],
            _createLayer:function () {
                this.mapLayer = layerFactory.createMap()
            },
            _createLayerManager:function () {
                this._layerManager.push(new MapLayerManager(this.mapLayer))
            },
            _initLayer:function () {
                for (var i= this._layerManager.length - 1; i >= 0; i--) {
                    var imgs = this._layerManager[i].createElement()

                    this._layerManager[i].addElement(imgs)
                    this._layerManager[i].initLayer()
                  }  
            }
        },
        Public:{
            mapLayer: null,

            init:function () {
                this._createLayer()
                this._createLayerManager()
                this._initLayer()
            },
            run:function () {
                for (var i = 0; i < this._layerManager.length; i++) {
                    this._layerManager[i].render()
                }
            }

        }
    })
    window.Game = Game
}())